Skip to content

Feat: About to Introduce Service Mode#430

Draft
Kiramei wants to merge 137 commits into
pur1fying:masterfrom
Kiramei:master
Draft

Feat: About to Introduce Service Mode#430
Kiramei wants to merge 137 commits into
pur1fying:masterfrom
Kiramei:master

Conversation

@Kiramei

@Kiramei Kiramei commented Dec 18, 2025

Copy link
Copy Markdown
Collaborator
  1. 引入 Service 模式,为了后续能够和 baas-tauri 以及 baas-webui 进行对接。该模式不会影响目前的UI,但仍然需要经过测试,重点观察是否会在Git上出BUG;
  2. 重构了 installer.py,但不确定是否有功能遗失,旧版保存于 _installer.py 中,需要 @pur1fying 仔细核对 ;
  3. 该PR多数由打包后的 dist 前端文件组成,后期该部分更新方法考虑使用 Github Action 进行PR推送。即该文件夹会与 https://github.com/Kiramei/baas-webui/tree/gh-pages 保持同步;
  4. 有页面更新功能的接口,但是目前前端方面仍未书写,但可以先进行测试;
  5. 对于 OCRserver_installer 进行了对Git CLI的支持,默认情况下会自动选择系统级Git(该模式无进度条),若不存在,则回滚PyGit2,此举是为了适应Docker部署;

Kiramei and others added 21 commits November 21, 2025 18:37
This branch was previously covered by a revert for misoperation of PR. Now it should be restored for the following developing. - Sincere apology from Kiramei.
Feat: Log Beautification with Rich
Replaces custom logging and console output with a centralized rich-based logging format. Moves log handler and formatter setup to service/__init__.py via set_log_format(), and updates main.service.py and core/utils.py to use standard logging. Adds logging for config changes in config_manager.py and suppresses specific warnings for cleaner output.
Introduces a new update_to_latest command to the websocket API and implements a robust update mechanism in service/utils/_update.py, supporting both MirrorC and Git-based updates. Refactors update logic in service/utils/update.py to use a new GitOperationHandler abstraction, improving reliability and maintainability. Adds PID file management to main.service.py for process tracking, and updates service/runtime.py and service/app.py to support the new update command.
This Track made the docker available for building and deployment.
Introduces deploy/installer/installer.py with comprehensive installer logic, including environment setup, package installation, update mechanisms, and error handling. Updates build.bat to include --hidden-import=_cffi_backend for PyInstaller. Refactors deploy/installer/installer.py to streamline imports, configuration management, and utility classes, improving maintainability and modularity.
Refactor: installer logic refactor
@Kiramei Kiramei added this to the service-mode milestone Dec 18, 2025
@Kiramei
Kiramei requested a review from pur1fying December 18, 2025 13:52
@Kiramei Kiramei self-assigned this Dec 18, 2025
@Kiramei Kiramei added 请求帮助 需要首要更加关注的问题 新的议题 新的议题,用于后续提交PR GUI相关 与UI相关的问题,提案等 功能改进 需要改进的地方 labels Dec 18, 2025
This was linked to issues Dec 18, 2025
@Kiramei
Kiramei marked this pull request as draft July 11, 2026 14:53
Kiramei added 25 commits July 12, 2026 17:12
Feat: Add cross-platform Pipe service transport
Fix: Prevent scheduler status queue accumulation
Fix: Restore pipe backend after update
…lows

Chore: Consolidate tests and workflows
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

GUI相关 与UI相关的问题,提案等 功能改进 需要改进的地方 新的议题 新的议题,用于后续提交PR 请求帮助 需要首要更加关注的问题

Projects

None yet

4 participants